
var insertData = function(db, callback) {  
    var collection = db.collection('site');
    var data = [{"name":"ddd","url":"www.runoob.com1"},{"name":"²ËÄñ¹¤¾ß1","url":"c.runoob.com1"}];
    collection.insert(data, function(err, result) { 
        if(err)
        {
            console.log('Error:'+ err);
            return;
        }     
        callback(result);
    });
}
module.exports = insertData();